package com.angel.service.ServiceImpl;

import com.angel.bean.AcupuncturePoint;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.angel.bean.SysmptomType;
import com.angel.mapper.SysmptomTypeDao;
import com.angel.service.SysmptomTypeService;

@Service
public class SysmptomTypeServiceImpl implements SysmptomTypeService{

    @Resource
    private SysmptomTypeDao sysmptomTypeDao;

    @Override
    public int insert(SysmptomType sysmptomType){
        return sysmptomTypeDao.insert(sysmptomType);
    }

    @Override
    public int insertSelective(SysmptomType sysmptomType){
        return sysmptomTypeDao.insertSelective(sysmptomType);
    }

    @Override
    public int insertList(List<SysmptomType> sysmptomTypes){
        return sysmptomTypeDao.insertList(sysmptomTypes);
    }

    @Override
    public int update(SysmptomType sysmptomType){
        return sysmptomTypeDao.update(sysmptomType);
    }

    @Override
    public int updatestate(SysmptomType sysmptomType) {
            return sysmptomTypeDao.updateState(sysmptomType);
    }

    @Override
    public List<SysmptomType> findAll(SysmptomType sysmptomType) {
        return sysmptomTypeDao.findAll(sysmptomType);
    }

    @Override
    public int deletOneId(SysmptomType sysmptomType) {
        return sysmptomTypeDao.deletOneId(sysmptomType);
    }

    @Override
    public SysmptomType findOne(SysmptomType sysmptomType) {
        List<SysmptomType> list = this.findAll(sysmptomType);
        if (list != null && list.size() > 0) {
            return list.get(0);
        }
        return null;
    }

    @Override
    public List<SysmptomType> searchSysmptomType(SysmptomType sysmptomType) {
        return sysmptomTypeDao.searchSysmptomType(sysmptomType);
    }
}
